<?php

	// +----------------------------------------------------------------------
	// | 后台基础控制器
	// +----------------------------------------------------------------------
	// | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
	// +----------------------------------------------------------------------
	// | Author: 微尘 <yicmf@qq.com>
	// +----------------------------------------------------------------------

	namespace app\controller\admin;

	use app\common\controller\Admin;
	use app\common\middleware\UserAuth;
	use app\model\store\Store as StoreModel;
	use app\event\ucenter\User as UserEvent;
	use app\model\ucenter\User as UserModel;
	use think\facade\View;

	class Common extends Admin
	{

		/**
		 * @var UserModel
		 */
		protected $user;
		/**
		 * 当前被访问的店家
		 * @var StoreModel
		 */
		protected $store;

		protected function initialize()
		{
			parent::initialize();
			$this->user = $this->request->user;
			View::assign('user', $this->user);
		}


	}
